package com.cqupt.service.impl;

import com.cqupt.mapper.LoginlogsMapper;
import com.cqupt.pojo.Loginlogs;
import com.cqupt.service.LoginlogsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class LoginlogsServiceImpl implements LoginlogsService {
    @Autowired
    private LoginlogsMapper loginlogsMapper;

    /**
     * 查询所有日志
     * @return
     */
    @Override
    public List<Loginlogs> queryAllLogs() {
        return loginlogsMapper.queryAllLogs();
    }
    /**
     * 增加日志
     * @return
     */
    @Override
    public int addLoginlogs(Loginlogs loginlogs) {
        System.out.println("2---未切入成功---");
        return loginlogsMapper.addLoginlogs(loginlogs);
    }
    /**
     * 条件过滤日志
     * @return
     */
    @Override
    public List<Loginlogs> queryLogsByFilter(Map<String, Object> params) {
        return loginlogsMapper.queryLogsByFilter(params);
    }
}
